package logic.courseQuery_logic;

import java.util.List;

import po.StuCouScoRecPO;
import logicsv.courseQuery_logicsv.CourseQueryLogicsv;
import resultmessage.CourseQueryRM;
import vo.CouStuScoListVO;
import vo.CouStuScoSecVO;
import vo.CourseVO;

public class CourseQueryLogicsvController implements CourseQueryLogicsv {
	private StuCouScoList stuCouScoList = new StuCouScoList();
	private TeaCouList teaCouList = new TeaCouList();
	private CourseList courseList = new CourseList();
	@Override
	public CourseVO getCourse(String courseID) {
		return new CourseVO(courseID);
	}


	@Override
	public CouStuScoListVO getAllStuOfCou(String courseID) {
		return new CouStuScoListVO(courseID);
	}

	@Override
	public List<StuCouScoRecPO> getAllCouOfStu(String studentID) {
		// TODO Auto-generated method stub
		return stuCouScoList.getAllCouOfStu(studentID);
	}


	@Override
	public List<CourseVO> getAllCouOfTea(String teacherID) {
		return teaCouList.getAllCouOfTea(teacherID);
	}

	@Override
	public CouStuScoSecVO getCouStuScoSec(String courseID,List<ScoreSection> sections) {
		return new CouStuScoSecVO(courseID,sections);
	}

	@Override
	public CourseQueryRM deleteCourse(String collegeID, String courseID) {
		return courseList.deleteCourse(collegeID, courseID);
	}

	@Override
	public CourseQueryRM addCourse(String collegeID, String courseID) {
		return courseList.addCourse(collegeID, courseID);
	}

	@Override
	public CourseQueryRM deleteStuCouRec(String courseID, String studentID) {
		return stuCouScoList.deleteStuOfCou(courseID, studentID);
	}

	@Override
	public CourseQueryRM addStuCouRec(String courseID, String studentID) {
		return stuCouScoList.addStuOfCou(courseID, studentID);
	}

	@Override
	public CourseQueryRM updateStuCouScoRec(String courseID, String studentID,
			int score) {
		return stuCouScoList.updateStuScoOfCou(courseID, studentID, score);
	}

	@Override
	public CourseQueryRM deleteCouOfTea(String courseID, String teacherID) {
		return teaCouList.deleteCouOfTea(courseID, teacherID);
	}

	@Override
	public CourseQueryRM addCouOfTea(String courseID, String teacherID) {
		return teaCouList.addCouOfTea(courseID, teacherID);
	}

	@Override
	public List<CourseVO> getAllCouOfSubModel(String collegeID, String modelID,
			String subModelID) {
		return new SubModelCourseList().getAllCouOfSubModel(collegeID, modelID, subModelID);
	}

}
